//
//  CMDBCellType.swift
//  CMDB
//
//  Created by 曹桂祥 on 17/4/9.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import Foundation

enum CMDBCellType: Int {
    case Default
    case Me
    case Setting
    case Home
    case Comment

    case Unknown
    
    init(string: String) {
        switch string {
        case "Default":
            self = .Default
        case "Me":
            self = .Me
        case "Setting":
            self = .Setting
        case "Home":
            self = .Home
        case "Comment":
            self = .Comment

        default:
            fatalError("Unknown====>>>>\(string)")
        }
    }
}